package top.lywivan.system.service;

import top.lywivan.common.entity.Result;
import top.lywivan.common.pojo.Question;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("search-service")
public interface SearchQuestionService {
    @PostMapping("/question/add")
    Result addQuestion(@RequestBody Question question);
}
